package com.odianyun.hello.web.controller;

import com.odianyun.hello.service.CodeService;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;
import com.odianyun.hello.model.DTO.CodeDTO;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

@RestController


public class CodeController extends AbstractCodeController<CodeDTO> {
    @Resource
    protected CodeService service;

    @ApiOperation(value="查询status")
    @PostMapping("/getOrderStatus")
    public Map<String,String> getOrderStatus() {
        Map<String,String> map = service.getOrderStatus();
        return map;
    }
}
